package com.util.library.network;

public class ConstantNetwork
{

	public static final int CONNECT = 5000;
	public static final int HOST = CONNECT + 1;
	public static final int IO = HOST + 1;

	public static final class JSON
	{

		public static final String NULL = "{}";
		public static final int KEY_TYPE = 0;
		public static final int KEY_VALUE = KEY_TYPE + 1;

		public static final String USERNAME = "Username";
		public static final String PASSWORD = "Password";
		public static final String ACCOUNT_ID = "AccountID";
		public static final String ACCOUNT_ROLE = "AccountRole";
		public static final String MACHINE_CODE = "MachineCode";
		public static final String TYPE = "Type";
		public static final String ACCOUNT = "Account";
		public static final String PRODUCT = "Product";
		public static final String KEY_DATA_ARRAY = "DataArray";
		public static final String KEY_BOX_NUMBER = "BoxNumber";
		public static final String KEY_PRODUCT_CODE = "ProductCode";
		public static final String KEY_REMAIN_QUANTITY = "RemainQuantity";
	}

	public static final class STATUS
	{
		public static final int CLIENT_SEND_OK = 0;
		public static final int CLIENT_SEND_FAIL_VALUE_NULL = CLIENT_SEND_OK + 1;
		public static final int CLIENT_SEND_FAIL_JSON = CLIENT_SEND_FAIL_VALUE_NULL + 1;
		public static final int CLIENT_SEND_FAIL_JSON_VALUE = CLIENT_SEND_FAIL_JSON + 1;
		public static final int CLIENT_SEND_UNKNOWN_TYPE = CLIENT_SEND_FAIL_JSON_VALUE + 1;
		public static final int CLIENT_WAITING_RESPONSE = CLIENT_SEND_UNKNOWN_TYPE + 1;

		public static final int SERVER_SEND_OK = 0;
		public static final int SERVER_SEND_FAIL_VALUE_NULL = SERVER_SEND_OK + 1;
		public static final int SERVER_SEND_FAIL_JSON = CLIENT_SEND_FAIL_VALUE_NULL + 1;
		public static final int SERVER_SEND_FAIL_JSON_VALUE = CLIENT_SEND_FAIL_JSON + 1;
		public static final int SERVER_SEND_UNKNOWN_TYPE = CLIENT_SEND_FAIL_JSON_VALUE + 1;
		public static final int SERVER_SEND_FAIL_DB = SERVER_SEND_UNKNOWN_TYPE + 1;
		public static final int SERVER_SEND_FAIL_DB_LOAD = SERVER_SEND_FAIL_DB + 1;

		public static final int SERVER_DB_CREATE_FAIL = 1000;
		public static final int SERVER_DB_INSERT_FAIL = SERVER_DB_CREATE_FAIL + 1;
	}

}
